home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10664 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  640 b 

  1. Path: phys.ksu.edu!binchen
  2. From: binchen@phys.ksu.edu (Bin Chen)
  3. Newsgroups: comp.lang.c
  4. Subject: a typedef question
  5. Date: 19 Mar 1996 08:10:13 GMT
  6. Organization: Kansas State University
  7. Distribution: us
  8. Message-ID: <4ilq55$4oo@newserv.ksu.ksu.edu>
  9. NNTP-Posting-Host: bohr.phys.ksu.edu
  10.  
  11. Here is the question:
  12.  
  13.         typedef struct A {
  14.                 ......
  15.                 struct B one_attr;
  16.                 ......
  17.         };
  18.  
  19.         typedef struct B {
  20.                 ......
  21.                 struct A two_attr;
  22.                 ......
  23.         };
  24.  
  25. Is this OK? How do you make it correct if it is not right?
  26. Thanks.
  27.  
  28. BIn
  29.  
  30. --
  31. Bin Chen
  32.  
  33.